<?php

namespace app\utils;

class NumText
{
    public static function sexText($num='')
    {
        $arr =[ 0=>"未知", 1=>"男", 2=>"女"];
        return $arr[$num]??$arr;
    }

    public static function statusText($num='')
    {
        $arr =[ 0=>"禁用", 1=>"启用"];
        return $arr[$num]??$arr;
    }

    public static function isTxt($num='')
    {
        $arr =[ 0=>"否", 1=>"是"];
        return $arr[$num]??$arr;
    }


}
